/*
 * @Description: 门店信息接口
 * @Date: 2022-12-07 22:33:54
 * @Author: lizhiqiang
 */
import { StoreInfo } from "@/types/api"
import { get, post } from "@/utils/request"
/**
 * 删除门店信息
 * @param params 
 * @returns 
 */
export const DeleteStoreInfo = ( params: Array<string> ) => {
    return post( "/cdwl-merchant/inner/storeinfo/deleteBatch", params )
}
/**
 * 修改门店信息
 * @param params 
 * @returns 
 */
export const UpdateStoreInfo = ( params: StoreInfo ) => {
    return post( "/cdwl-merchant/inner/storeinfo/update", params )
}
/**
 * 保存门店信息
 * @param params 
 * @returns 
 */
export const SaveStoreInfo = ( params: StoreInfo ) => {
    return post( "/cdwl-merchant/inner/storeinfo/save", params )
}
/**
 * 获取门店信息详情
 * @param id 
 * @returns 
 */
export const GetStoreInfo = ( id: string ) => {
    return get( `/cdwl-merchant/inner/storeinfo/info/${ id }` )
}
/**
 * 获取门店信息列表
 * @param params 
 * @returns 
 */
export const GetStoreInfoList = ( params: StoreInfo ) => {
    return post( "/cdwl-merchant/inner/storeinfo/list", params )
}
/**
 * 批量提审
 * @param params 
 * @returns 
 */
export const ReferralStoreinfo = ( params: Array<string>  ) => {
    return post( "/cdwl-merchant/inner/storeinfo/initiateReview", params )
}
/**
 * 审核
 * @param params 
 * @returns 
 */
export const auditStoreinfo = ( params: any  ) => {
    return post( "/cdwl-merchant/inner/storeinfo/examine", params )
}